package pe.com.bn.sach.domain;

/**
 * Bnchf35InmuebleId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Bnchf35InmuebleId implements java.io.Serializable {

	// Fields

	private Bnchf13Expediente bnchf13Expediente;
	private Long f35IdInmueble;

	// Constructors

	/** default constructor */
	public Bnchf35InmuebleId() {
		bnchf13Expediente = new Bnchf13Expediente();
	}

	/** full constructor */
	public Bnchf35InmuebleId(Bnchf13Expediente bnchf13Expediente,
			Long f35IdInmueble) {
		this.bnchf13Expediente = bnchf13Expediente;
		this.f35IdInmueble = f35IdInmueble;
	}

	// Property accessors

	public Bnchf13Expediente getBnchf13Expediente() {
		return this.bnchf13Expediente;
	}

	public void setBnchf13Expediente(Bnchf13Expediente bnchf13Expediente) {
		this.bnchf13Expediente = bnchf13Expediente;
	}

	public Long getF35IdInmueble() {
		return this.f35IdInmueble;
	}

	public void setF35IdInmueble(Long f35IdInmueble) {
		this.f35IdInmueble = f35IdInmueble;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bnchf35InmuebleId))
			return false;
		Bnchf35InmuebleId castOther = (Bnchf35InmuebleId) other;

		return ((this.getBnchf13Expediente() == castOther
				.getBnchf13Expediente()) || (this.getBnchf13Expediente() != null
				&& castOther.getBnchf13Expediente() != null && this
				.getBnchf13Expediente()
				.equals(castOther.getBnchf13Expediente())))
				&& ((this.getF35IdInmueble() == castOther.getF35IdInmueble()) || (this
						.getF35IdInmueble() != null
						&& castOther.getF35IdInmueble() != null && this
						.getF35IdInmueble()
						.equals(castOther.getF35IdInmueble())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getBnchf13Expediente() == null ? 0 : this
						.getBnchf13Expediente().hashCode());
		result = 37
				* result
				+ (getF35IdInmueble() == null ? 0 : this.getF35IdInmueble()
						.hashCode());
		return result;
	}

}